package com.white.hot.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.white.hot.dao.MaxRecordDao;
import com.white.hot.dao.UserDao;
import com.white.hot.dto.MaxRecord;
import com.white.hot.service.MaxRecordService;

@Service("maxRecordService")
public class MaxRecordServiceImpl implements MaxRecordService
{
	@Resource
	private MaxRecordDao maxDao;
	
	@Override
	public int deleteById(Integer id)
	{
		return maxDao.deleteByPrimaryKey(id);
	}

	@Override
	public int save(MaxRecord record)
	{
		return maxDao.insert(record);
	}

	@Override
	public int insertSelective(MaxRecord record)
	{
		return maxDao.insertSelective(record);
	}

	@Override
	public MaxRecord selectById(Integer id)
	{
		return maxDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateItem(MaxRecord record)
	{
		return maxDao.updateByPrimaryKey(record);
	}

	@Override
	public int updateById(MaxRecord record)
	{
		return maxDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<MaxRecord> getList()
	{
		return maxDao.selectAll();
	}

}
